<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html>
<head>
<title></title>
<link href="<%=request.getContextPath()%>/css/style.css"
	rel="stylesheet" type="text/css" media="all">
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
	});
	function unlock() {
		var value = $("#account").val();
		$.ajax({
			type : "get",
			url : "adminOperatorUnlock.html?account=" + value + "&& t="+ Math.random(),
			dataType : "json",
			success : function(data) {
				if (data.userstate == 0) {
					$("#userstate").html("正常");
				}
			}
		});
	}
</script>
</head>
<body background="<%=request.getContextPath()%>/images/bg_right.gif">
	<table width="80%" border="0" cellpadding="0" cellspacing="0"
		align="center">
		<tr>
			<td height="299">
				<table width="85%" align="center" cellpadding=5 cellspacing=0>
					<tr>
						<td height="41" align=center><span class="alert">
								机构管理员详细信息 </span></td>
					</tr>
				</table>
				<table width="85%" border=0 align="center" cellpadding="3"
					cellspacing="1" bgcolor="#cccccc">
					<tr>
						<td width="15%" class=list03>管理员帐号</td>
						<input type="hidden" id="account"
							value="${adminOP.operatoraccount}" />
						<td width="35%" class=list02>${adminOP.operatoraccount}</td>
						<td width="15%" class=list03>管理员名称</td>
						<td width="35%" class=list02>${adminOP.operatorname}</td>
					</tr>

					<tr>
						<td width="15%" class=list03>证件类型</td>
						<td width="35%" class=list02>${cardType}</td>
						<td width="15%" class=list03>证件号</td>
						<td width="35%" class=list02>${adminOP.cardnum}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>管理员所属机构</td>
						<td width="35%" class=list02>${adminOP.cardnum}</td>
						<td width="15%" class=list03>证书状态</td>
						<td width="35%" class=list02>${certStatus}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>手机</td>
						<td width="35%" class=list02>${adminOP.mobilephone}</td>
						<td width="15%" class=list03>邮件</td>
						<td width="35%" class=list02>${adminOP.email}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>证书类型</td>
						<td width="35%" class=list02>${certType}</td>
						<td width="15%" class=list03>USBKEYID</td>
						<td width="35%" class=list02>${adminOP.usbkeyid}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>证书SN</td>
						<td width="35%" class=list02>${adminOP.certSN}</td>
						<td width="15%" class=list03>证书DN</td>
						<td width="35%" class=list02>${adminOP.certDN}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>证书生效时间</td>
						<td width="35%" class=list02>${adminOP.certStartTime}</td>
						<td width="15%" class=list03>证书失效时间</td>
						<td width="35%" class=list02>${adminOP.certEndTime}</td>
					</tr>
					<tr>
						<td width="15%" class=list03>创建时间</td>
						<td width="35%" class=list02>${adminOP.timestamp}</td>
						<td width="15%" class=list03>状态</td>
						<td id="userstate" width="35%" class=list02><c:if
								test="${adminOP.cancellation == 1}">
								<font color=red><b>注销</b></font>
							</c:if> <c:if test="${adminOP.cancellation == 0 && adminOP.loginfalsetime>=5}">
								<font color=red><b>锁定</b></font>&nbsp;&nbsp;<a
									href="javascript:void(0);" id="unlock" onclick="unlock();">解锁</a>
							</c:if> <c:if test="${adminOP.cancellation == 0 && adminOP.loginfalsetime<5}">正常</c:if></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

</body>
</html>